﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace XiAnAirport.Models
{
    public class MaintainInfo
    {
        public int id { get; set; }
        public int elevatorID { get; set; }//电梯id
        public string maintenanceNo { get; set; }//工单编号
        public string maintenanceDatetime { get; set; }//例行保养时间
        public int maintenanceGroupID { get; set; }
        public int maintenanceUserID { get; set; }
        public string maintenanceProperties { get; set; }//维保工单类型
        private int mainstate_id = -1;
        public int maintenancestateId//维保订单状态id
        {
            get { return mainstate_id; }
            set { mainstate_id = value; }
        }
        public string maintenanceResult { get; set; }//维保结果
        public int isDelete { get; set; }
        public int Recordhead { get; set; }//记录头
        public int Recordtail { get; set; }//记录尾
        public string elevatorName { get; set; }
        public string elevatorNo { get; set; }
        public string groupNO { get; set; }
        public string areaName { get; set; }
        public string preparationTime { get; set; }//制单时间
        public string receiveTime { get; set; }//接收时间
        public string arriveTime { get; set; }//到达时间
        public string completeTime { get; set; }//完成时间
        public string acceptanceTime { get; set; }//验收时间
        public string startTime { get; set; }
        public string endTime { get; set; }
        private int attribute = -1;
        public int workattribute
        {
            get { return attribute; }
            set { attribute = value; }
        }
        public string workattributeName { get; set; }
        public List<Rtime> rogressedtime { get; set; }
        public string workorderStateName { get; set; }
        public string repairperson { get; set; }
        public string receiver { get; set; }//维保员
        public string remark { get; set; }
        public string contractNo { get; set; }
        public string saleNo { get; set; }
        public int outofservice { get; set; }
        public string receiverPhone { get; set; }//维保员电话
        public string receiverNo { get; set; }//维保员工号
        public int mainAreaId { get; set; }//父区域id
        public string mainAreaName { get; set; }//父区域名称
        public int areaId { get; set; }//区域id
        public int timedifference { get; set; }//天数
        public int isRead { get; set; }//已读标记，0=未读，1=已读
        public string ids { get; set; }
        public int type { get; set; }//0=工单1=历史
    }

    public class Rtime
    {
        public string preparationTime { get; set; }
        public string receiveTime { get; set; }
        public string arriveTime { get; set; }
        public string completeTime { get; set; }
        public string acceptanceTime { get; set; }
    }
}
